<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1 align="center">宿舍主界面</h1>
    <form method="post">
        <div align="center"><a href="/regiest_depart/">注册宿舍信息</a></div>
            <table align="center" border="1" width="500">
            <thead>
                <tr>
                    <th>宿舍号码：</th>
                    <th>入住人员：</th>
                    <th>所属院系</th>
                    <th>
                        操&emsp;作：
                    </th>
                </tr>
                </thead>
                <tbody>
                    {% for i in queryset %}
                    <tr>
                        <td align="center">{{ i.id }}</td>
                        <td align="center">{{ i.d_people }}</td>
                        <td align="center">{{ i.d_college }}</td>
                        <td><a href="/delete_depart/?d_id={{ i.d_id }}">删除</a>
                        <a href="/edit_depart/?d_id={{ i.d_id }}">修改</a></td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </form>
</body>
</html>